package com.health.db.model;

import java.util.ArrayList;
import java.util.List;

public class IllnessListExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public IllnessListExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRecidIsNull() {
            addCriterion("RecID is null");
            return (Criteria) this;
        }

        public Criteria andRecidIsNotNull() {
            addCriterion("RecID is not null");
            return (Criteria) this;
        }

        public Criteria andRecidEqualTo(Integer value) {
            addCriterion("RecID =", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidNotEqualTo(Integer value) {
            addCriterion("RecID <>", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidGreaterThan(Integer value) {
            addCriterion("RecID >", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidGreaterThanOrEqualTo(Integer value) {
            addCriterion("RecID >=", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidLessThan(Integer value) {
            addCriterion("RecID <", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidLessThanOrEqualTo(Integer value) {
            addCriterion("RecID <=", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidIn(List<Integer> values) {
            addCriterion("RecID in", values, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidNotIn(List<Integer> values) {
            addCriterion("RecID not in", values, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidBetween(Integer value1, Integer value2) {
            addCriterion("RecID between", value1, value2, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidNotBetween(Integer value1, Integer value2) {
            addCriterion("RecID not between", value1, value2, "recid");
            return (Criteria) this;
        }

        public Criteria andEntityidIsNull() {
            addCriterion("EntityID is null");
            return (Criteria) this;
        }

        public Criteria andEntityidIsNotNull() {
            addCriterion("EntityID is not null");
            return (Criteria) this;
        }

        public Criteria andEntityidEqualTo(Integer value) {
            addCriterion("EntityID =", value, "entityid");
            return (Criteria) this;
        }

        public Criteria andEntityidNotEqualTo(Integer value) {
            addCriterion("EntityID <>", value, "entityid");
            return (Criteria) this;
        }

        public Criteria andEntityidGreaterThan(Integer value) {
            addCriterion("EntityID >", value, "entityid");
            return (Criteria) this;
        }

        public Criteria andEntityidGreaterThanOrEqualTo(Integer value) {
            addCriterion("EntityID >=", value, "entityid");
            return (Criteria) this;
        }

        public Criteria andEntityidLessThan(Integer value) {
            addCriterion("EntityID <", value, "entityid");
            return (Criteria) this;
        }

        public Criteria andEntityidLessThanOrEqualTo(Integer value) {
            addCriterion("EntityID <=", value, "entityid");
            return (Criteria) this;
        }

        public Criteria andEntityidIn(List<Integer> values) {
            addCriterion("EntityID in", values, "entityid");
            return (Criteria) this;
        }

        public Criteria andEntityidNotIn(List<Integer> values) {
            addCriterion("EntityID not in", values, "entityid");
            return (Criteria) this;
        }

        public Criteria andEntityidBetween(Integer value1, Integer value2) {
            addCriterion("EntityID between", value1, value2, "entityid");
            return (Criteria) this;
        }

        public Criteria andEntityidNotBetween(Integer value1, Integer value2) {
            addCriterion("EntityID not between", value1, value2, "entityid");
            return (Criteria) this;
        }

        public Criteria andIllnessidIsNull() {
            addCriterion("illnessID is null");
            return (Criteria) this;
        }

        public Criteria andIllnessidIsNotNull() {
            addCriterion("illnessID is not null");
            return (Criteria) this;
        }

        public Criteria andIllnessidEqualTo(Integer value) {
            addCriterion("illnessID =", value, "illnessid");
            return (Criteria) this;
        }

        public Criteria andIllnessidNotEqualTo(Integer value) {
            addCriterion("illnessID <>", value, "illnessid");
            return (Criteria) this;
        }

        public Criteria andIllnessidGreaterThan(Integer value) {
            addCriterion("illnessID >", value, "illnessid");
            return (Criteria) this;
        }

        public Criteria andIllnessidGreaterThanOrEqualTo(Integer value) {
            addCriterion("illnessID >=", value, "illnessid");
            return (Criteria) this;
        }

        public Criteria andIllnessidLessThan(Integer value) {
            addCriterion("illnessID <", value, "illnessid");
            return (Criteria) this;
        }

        public Criteria andIllnessidLessThanOrEqualTo(Integer value) {
            addCriterion("illnessID <=", value, "illnessid");
            return (Criteria) this;
        }

        public Criteria andIllnessidIn(List<Integer> values) {
            addCriterion("illnessID in", values, "illnessid");
            return (Criteria) this;
        }

        public Criteria andIllnessidNotIn(List<Integer> values) {
            addCriterion("illnessID not in", values, "illnessid");
            return (Criteria) this;
        }

        public Criteria andIllnessidBetween(Integer value1, Integer value2) {
            addCriterion("illnessID between", value1, value2, "illnessid");
            return (Criteria) this;
        }

        public Criteria andIllnessidNotBetween(Integer value1, Integer value2) {
            addCriterion("illnessID not between", value1, value2, "illnessid");
            return (Criteria) this;
        }

        public Criteria andIllnessNoIsNull() {
            addCriterion("illness_NO is null");
            return (Criteria) this;
        }

        public Criteria andIllnessNoIsNotNull() {
            addCriterion("illness_NO is not null");
            return (Criteria) this;
        }

        public Criteria andIllnessNoEqualTo(String value) {
            addCriterion("illness_NO =", value, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessNoNotEqualTo(String value) {
            addCriterion("illness_NO <>", value, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessNoGreaterThan(String value) {
            addCriterion("illness_NO >", value, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessNoGreaterThanOrEqualTo(String value) {
            addCriterion("illness_NO >=", value, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessNoLessThan(String value) {
            addCriterion("illness_NO <", value, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessNoLessThanOrEqualTo(String value) {
            addCriterion("illness_NO <=", value, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessNoLike(String value) {
            addCriterion("illness_NO like", value, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessNoNotLike(String value) {
            addCriterion("illness_NO not like", value, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessNoIn(List<String> values) {
            addCriterion("illness_NO in", values, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessNoNotIn(List<String> values) {
            addCriterion("illness_NO not in", values, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessNoBetween(String value1, String value2) {
            addCriterion("illness_NO between", value1, value2, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessNoNotBetween(String value1, String value2) {
            addCriterion("illness_NO not between", value1, value2, "illnessNo");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasIsNull() {
            addCriterion("illness_ALIAS is null");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasIsNotNull() {
            addCriterion("illness_ALIAS is not null");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasEqualTo(String value) {
            addCriterion("illness_ALIAS =", value, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasNotEqualTo(String value) {
            addCriterion("illness_ALIAS <>", value, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasGreaterThan(String value) {
            addCriterion("illness_ALIAS >", value, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasGreaterThanOrEqualTo(String value) {
            addCriterion("illness_ALIAS >=", value, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasLessThan(String value) {
            addCriterion("illness_ALIAS <", value, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasLessThanOrEqualTo(String value) {
            addCriterion("illness_ALIAS <=", value, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasLike(String value) {
            addCriterion("illness_ALIAS like", value, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasNotLike(String value) {
            addCriterion("illness_ALIAS not like", value, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasIn(List<String> values) {
            addCriterion("illness_ALIAS in", values, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasNotIn(List<String> values) {
            addCriterion("illness_ALIAS not in", values, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasBetween(String value1, String value2) {
            addCriterion("illness_ALIAS between", value1, value2, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessAliasNotBetween(String value1, String value2) {
            addCriterion("illness_ALIAS not between", value1, value2, "illnessAlias");
            return (Criteria) this;
        }

        public Criteria andIllnessNameIsNull() {
            addCriterion("illness_NAME is null");
            return (Criteria) this;
        }

        public Criteria andIllnessNameIsNotNull() {
            addCriterion("illness_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andIllnessNameEqualTo(String value) {
            addCriterion("illness_NAME =", value, "illnessName");
            return (Criteria) this;
        }

        public Criteria andIllnessNameNotEqualTo(String value) {
            addCriterion("illness_NAME <>", value, "illnessName");
            return (Criteria) this;
        }

        public Criteria andIllnessNameGreaterThan(String value) {
            addCriterion("illness_NAME >", value, "illnessName");
            return (Criteria) this;
        }

        public Criteria andIllnessNameGreaterThanOrEqualTo(String value) {
            addCriterion("illness_NAME >=", value, "illnessName");
            return (Criteria) this;
        }

        public Criteria andIllnessNameLessThan(String value) {
            addCriterion("illness_NAME <", value, "illnessName");
            return (Criteria) this;
        }

        public Criteria andIllnessNameLessThanOrEqualTo(String value) {
            addCriterion("illness_NAME <=", value, "illnessName");
            return (Criteria) this;
        }

        public Criteria andIllnessNameLike(String value) {
            addCriterion("illness_NAME like", value, "illnessName");
            return (Criteria) this;
        }

        public Criteria andIllnessNameNotLike(String value) {
            addCriterion("illness_NAME not like", value, "illnessName");
            return (Criteria) this;
        }

        public Criteria andIllnessNameIn(List<String> values) {
            addCriterion("illness_NAME in", values, "illnessName");
            return (Criteria) this;
        }

        public Criteria andIllnessNameNotIn(List<String> values) {
            addCriterion("illness_NAME not in", values, "illnessName");
            return (Criteria) this;
        }

        public Criteria andIllnessNameBetween(String value1, String value2) {
            addCriterion("illness_NAME between", value1, value2, "illnessName");
            return (Criteria) this;
        }

        public Criteria andIllnessNameNotBetween(String value1, String value2) {
            addCriterion("illness_NAME not between", value1, value2, "illnessName");
            return (Criteria) this;
        }

        public Criteria andSearchCodeIsNull() {
            addCriterion("search_CODE is null");
            return (Criteria) this;
        }

        public Criteria andSearchCodeIsNotNull() {
            addCriterion("search_CODE is not null");
            return (Criteria) this;
        }

        public Criteria andSearchCodeEqualTo(String value) {
            addCriterion("search_CODE =", value, "searchCode");
            return (Criteria) this;
        }

        public Criteria andSearchCodeNotEqualTo(String value) {
            addCriterion("search_CODE <>", value, "searchCode");
            return (Criteria) this;
        }

        public Criteria andSearchCodeGreaterThan(String value) {
            addCriterion("search_CODE >", value, "searchCode");
            return (Criteria) this;
        }

        public Criteria andSearchCodeGreaterThanOrEqualTo(String value) {
            addCriterion("search_CODE >=", value, "searchCode");
            return (Criteria) this;
        }

        public Criteria andSearchCodeLessThan(String value) {
            addCriterion("search_CODE <", value, "searchCode");
            return (Criteria) this;
        }

        public Criteria andSearchCodeLessThanOrEqualTo(String value) {
            addCriterion("search_CODE <=", value, "searchCode");
            return (Criteria) this;
        }

        public Criteria andSearchCodeLike(String value) {
            addCriterion("search_CODE like", value, "searchCode");
            return (Criteria) this;
        }

        public Criteria andSearchCodeNotLike(String value) {
            addCriterion("search_CODE not like", value, "searchCode");
            return (Criteria) this;
        }

        public Criteria andSearchCodeIn(List<String> values) {
            addCriterion("search_CODE in", values, "searchCode");
            return (Criteria) this;
        }

        public Criteria andSearchCodeNotIn(List<String> values) {
            addCriterion("search_CODE not in", values, "searchCode");
            return (Criteria) this;
        }

        public Criteria andSearchCodeBetween(String value1, String value2) {
            addCriterion("search_CODE between", value1, value2, "searchCode");
            return (Criteria) this;
        }

        public Criteria andSearchCodeNotBetween(String value1, String value2) {
            addCriterion("search_CODE not between", value1, value2, "searchCode");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}